package o;

import android.view.animation.Interpolator;

abstract class fpz implements Interpolator {
    private final float[] ˋ;
    private final float ˎ = (1.0f / ((float) (this.ˋ.length - 1)));

    fpz(float[] fArr) {
        this.ˋ = fArr;
    }

    public float getInterpolation(float f) {
        if (f >= 1.0f) {
            return 1.0f;
        }
        if (f <= 0.0f) {
            return 0.0f;
        }
        int length = (int) (((float) (this.ˋ.length - 1)) * f);
        int length2 = this.ˋ.length - 2;
        if (length >= length2) {
            length = length2;
        }
        float f2 = (f - (((float) length) * this.ˎ)) / this.ˎ;
        return ((this.ˋ[length + 1] - this.ˋ[length]) * f2) + this.ˋ[length];
    }
}
